<include file="public/layout" title="" />
<body style="background-color: #FFF; overflow: auto;">
<div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title"><a class="back" href="javascript:history.back();" title="返回列表"><i class="fa fa-arrow-circle-o-left"></i></a>
            <div class="subject">
                <h3>会员中心提现状态设置</h3>
                <h5>会员中心提现凭证上传</h5>
            </div>
        </div>
    </div>
    <form class="form-horizontal" method="post" id="add_form">
    	<input type="hidden" name="id" value="{$data.id}">
        <div class="ncap-form-default">
            <dl class="row">
                <dt class="tit">
                    <label>用户id</label>
                </dt>
                <dd class="opt">
                    <a class="open" href="{:U('Admin/user/detail',array('id'=>$data[user_id]))}" target="blank">
                        {$data[user_id]}<i class="fa fa-external-link " title="新窗口打开"></i>
                    </a>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>用户名</label>
                </dt>
                <dd class="opt">{$user.truename?$user.truename:$user.nickname}</dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>用户平台余额</label>
                </dt>
                <dd class="opt"><strong class="red">{$user.user_money}</strong>元</dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>申请提现金额</label>
                </dt>
                <dd class="opt"><strong class="red">{$data.money}</strong>元</dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>扣除手续费</label>
                </dt>
                <dd class="opt"><strong class="red">{$data.taxfee}</strong>元</dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>实际到账金额</label>
                </dt>
                <dd class="opt"><strong class="red">{$data.money - $data.taxfee}</strong>元</dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>收款机构名</label>
                </dt>
                <dd class="opt">{$data.bank_name|default="微信"}</dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>申请时间</label>
                </dt>
                <dd class="opt">{$data.create_time|date="Y-m-d H:i",###}</dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>状态</label>
                </dt>
                <dd class="opt">{$data.status_code}</dd>
            </dl>
            



             <dl class="row">
                <dt class="tit">
                    <label for="fee"><em>*</em>审核时间</label>
                </dt>
                <dd class="opt">
                    {:date('Y-m-d H:i:s',$data.check_time)}
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label for="fee"><em>*</em>提现状态</label>
                </dt>
                <dd class="opt">
                    <select name="status"  <if condition="$data.status == 3 or $data.status == 2">disabled="disabled"</if>>
                    	<option value ="3" <if condition="$data.status == 3">selected = "selected"</if>>提现失败</option>
						<option value ="2" <if condition="$data.status == 2">selected = "selected"</if>>提现成功</option>
                    </select>
            </dl>
            <dl class="row" id="is_refund" style="display: none">
                <dt class="tit">
                    <label for="fee"><em>*</em>是否退还提现款</label>
                </dt>
                <dd class="opt">
                    <select name="is_refund" <if condition="$data.status eq 3">disabled="disabled"</if>>
                        <option value ="1" <if condition="$data.is_refund eq 1">selected = "selected"</if>>是</option>
                        <option value ="0" <if condition="$data.is_refund eq 0">selected = "selected"</if>>否</option>
                    </select>
            </dl>
            

            <dl class="row">
                <dt class="tit">
                    <label for="fee"><em>*</em>备注</label>
                </dt>
                <dd class="opt">
                   <textarea name="remark" <if condition="$data.status eq 2">readonly</if>>{$data.remark}</textarea>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>提现流程</label>
                </dt>
                <dd class="opt">
                    1:用户前台申请提现<br/>
                    2:管理员审核生成转账记录 ( 生成时自动扣除用户平台余额 ) <br/>
                    3:财务转账给用户<br/>
                    或 2 , 3步可以调换,先转账后生成记录.<br/>
                </dd>
            </dl>
            <div class="bot">
            	<if condition="$data.status == 3">
            		<a href="javascript :history.back(-1)" class="ncap-btn-big ncap-btn-green">返回</a>
            	<else/>
                    <if condition="$data.status != 2">
                        <input type="submit" value="确认修改" class="ncap-btn-big ncap-btn-green">
                    </if>
            	</if>
                </div>
        </div>
    </form>
</div>
<script>
    $(function(){
        $("select[name=status]").change(function(){
            var status = $(this).val();
            if (status != 2) {
                $("#is_refund").show();
                $("#shangchuanp").hide();
            }else{
                $("#is_refund").hide();
                $("#shangchuanp").show();
            }
        });
        $("select[name=status]").change();
    });
	
    function img_call_back(fileurl_tmp){
        $("#imagetext").val(fileurl_tmp);
        $("#img_a").attr('href', fileurl_tmp);
        $("#img_i").attr('onmouseover', "layer.tips('<img src="+fileurl_tmp+" width=300>',this,{tips: [1, '#fff']});");
    }
</script>
</body>
</html>